package com.ilxqx.generator.po;

import lombok.Data;

import java.util.Collection;
import java.util.Map;

/**
 * 规则
 * @author venus
 */
@Data
public class Rule {

    /**
     * 规则名称
     */
    private String ruleName;

    /**
     * 规则额外参数
     */
    private Map<String, String> params;

    public Rule() {
    }

    public Rule(String ruleName, Map<String, String> params) {
        this.ruleName = ruleName;
        this.params = params;
    }

    public String getParam(String key) {
        return this.params.get(key);
    }

    public Collection<String> getValues() {
        return this.params.values();
    }

}
